package com.dmlll.common;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
public class TreeType {
    private Integer id;
    private String title;
    private Integer parentId;
//    private String checkArr;
    private Boolean spread;
    private List<TreeType> children;

//    public TreeType(Integer id, String title, Integer parentId,String checkArr,Boolean spread) {
//        this.id = id;
//        this.title = title;
//        this.parentId = parentId;
//        this.checkArr = checkArr;
//        this.spread = spread;
//    }

    public TreeType(Integer id, String title, Integer parentId, boolean spread) {
        this.id = id;
        this.title = title;
        this.parentId = parentId;
        this.spread = spread;
    }
}
